package seqlist;

/**
 * 带头单链表的测试类
 * @author yuisama
 * @date 2022/04/21 19:48
 **/
public class LinkedListWithHeadTest {
    public static void main(String[] args) {
        LinkedListWithHead linkedListWithHead = new LinkedListWithHead();
        linkedListWithHead.addFirst(3);
        linkedListWithHead.addFirst(2);
        linkedListWithHead.addFirst(2);
        linkedListWithHead.addFirst(3);
        linkedListWithHead.addFirst(2);
        // 2->2->2->2->3
        System.out.println(linkedListWithHead);
        linkedListWithHead.removeAllValue(2);
        System.out.println(linkedListWithHead);
//        System.out.println("----------------");
//        System.out.println(linkedListWithHead.remove(0));
//        System.out.println(linkedListWithHead.remove(1));
//        System.out.println(linkedListWithHead);
    }
}